package com.xiaoq.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xiaoq.system.entity.ZoneMasterEntity;
import com.xiaoq.system.repository.IZoneMasterRepository;
import com.xiaoq.system.service.IZoneMasterService;


@Component
public class ZoneMasterServiceImpl implements IZoneMasterService {
	
	@Autowired
	private IZoneMasterRepository zoneMasterRepository;

	@Override
	public List<ZoneMasterEntity> findAllZoneMaster() {
		return zoneMasterRepository.findAllZoneMaster();
	}

	@Override
	public List<ZoneMasterEntity> find4HotActivities() {
		return zoneMasterRepository.find4HotActivities();
	}

	@Override
	public boolean save(ZoneMasterEntity zoneMasterEntity) {
		return zoneMasterRepository.save(zoneMasterEntity);
	}

	@Override
	public ZoneMasterEntity getZoneMasterByCode(String code) {
		return zoneMasterRepository.getZoneMasterByCode(code);
	}

	@Override
	public List<ZoneMasterEntity> findAllZoneMaster(String onlineFlag, Integer levels) {
		return zoneMasterRepository.findAllZoneMaster(onlineFlag, levels);
	}

	@Override
	public List<ZoneMasterEntity> findAllZoneMasterByCityName(String cityName) {
		return zoneMasterRepository.findAllZoneMasterByCityName(cityName);
	}

	@Override
	public List<ZoneMasterEntity> getZoneMasterListByCityCodeList(List<String> zoneCityCodeList) {
		return zoneMasterRepository.getZoneMasterListByCityCodeList(zoneCityCodeList);
	}

	@Override
	public ZoneMasterEntity findZoneMasterByCityNameAndLevel(String cityName, Integer levels) {
		return zoneMasterRepository.findZoneMasterByCityNameAndLevel(cityName, levels);
	}

	@Override
	public boolean updateById(ZoneMasterEntity zoneMasterEntity) {
		return zoneMasterRepository.updateById(zoneMasterEntity);
	}

	@Override
	public List<ZoneMasterEntity> findAllZoneMasterList(List<String> areaCodeList, Integer levels) {
		return zoneMasterRepository.findAllZoneMaster(areaCodeList, levels);
	}
}
